/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.circle.entity;

import com.thinkgem.jeesite.modules.hk.media.entity.HkMediaCategoryCircle;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 圈子帖子Entity
 * @author 罗天文
 * @version 2018-06-15
 */
public class HkMediaCirclePosts extends DataEntity<HkMediaCirclePosts> {
	
	private static final long serialVersionUID = 1L;
	private HkUser user;		// 用户id
	private HkMediaCategoryCircle circle;		// 圈子id
	private String title;		// 标题
	private String isselected;		// 是否精选
	private String content;		// 内容
	private String istop;		// 是否置顶
	private String isnotice;		// 是否公告
	private String praiseCount;		// 点赞总数
	
	public HkMediaCirclePosts() {
		super();
	}

	public HkMediaCirclePosts(String id){
		super(id);
	}

	public HkUser getUser() {
		return user;
	}

	public void setUser(HkUser user) {
		this.user = user;
	}
	
	@Length(min=0, max=32, message="圈子id长度必须介于 0 和 32 之间")
	public HkMediaCategoryCircle getCircle() {
		return circle;
	}

	public void setCircle(HkMediaCategoryCircle circle) {
		this.circle = circle;
	}
	
	@Length(min=0, max=100, message="标题长度必须介于 0 和 100 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=1, message="是否精选长度必须介于 0 和 1 之间")
	public String getIsselected() {
		return isselected;
	}

	public void setIsselected(String isselected) {
		this.isselected = isselected;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	@Length(min=0, max=1, message="是否置顶长度必须介于 0 和 1 之间")
	public String getIstop() {
		return istop;
	}

	public void setIstop(String istop) {
		this.istop = istop;
	}
	
	@Length(min=0, max=1, message="是否公告长度必须介于 0 和 1 之间")
	public String getIsnotice() {
		return isnotice;
	}

	public void setIsnotice(String isnotice) {
		this.isnotice = isnotice;
	}
	
	@Length(min=0, max=11, message="点赞总数长度必须介于 0 和 11 之间")
	public String getPraiseCount() {
		return praiseCount;
	}

	public void setPraiseCount(String praiseCount) {
		this.praiseCount = praiseCount;
	}
	
}